import dt from '@dt/dt'
import buildingApi from '@/config/server/api/building.js'
import customerApi from '@/config/server/api/customer.js'
// publicCustomer
function publicCustomerList(info) {
  info.buildingId = dt.buildInfo().housesId
  return customerApi.publicCustomer.publicCustomerList.fetch(info)
}

function publicCustomerVisitList(info) {
  info.buildingId = dt.buildInfo().housesId
  return customerApi.publicCustomer.publicCustomerVisitList.fetch(info)
}

function publicCustomerCount(info) {
  info.buildingId = dt.buildInfo().housesId
  return customerApi.publicCustomer.publicCustomerCount.fetch(info)
}

function publicCustomerVisitCount(info) {
  info.buildingId = dt.buildInfo().housesId
  return customerApi.publicCustomer.publicCustomerVisitCount.fetch(info)
}

function publicCustomerExport(info) {
  return customerApi.publicCustomer.publicCustomerExport.fetch(info)
}

function customerPublicPoolDistributionList(info) {
  info.buildingId = dt.buildInfo().housesId
  return customerApi.publicCustomer.customerPublicPoolDistributionList.fetch(info)
}

function customerPublicPoolDistributionExport(info) {
  return customerApi.publicCustomer.customerPublicPoolDistributionExport.fetch(info)
}

function tipsGet(info) {
  info.buildingId = dt.buildInfo().housesId
  return buildingApi.publicCustomerTips.tipsGet.fetch(info)
}

function tipsClose(info) {
  info.buildingId = dt.buildInfo().housesId
  return buildingApi.publicCustomerTips.tipsClose.fetch(info)
}

function distributePublicCustomer(info) {
  info.buildingId = dt.buildInfo().housesId
  return customerApi.publicCustomer.distributePublicCustomer.fetch(info)
}

function wechatClueList(info) {
  info.buildingId = dt.buildInfo().housesId
  return customerApi.publicCustomer.wechatClueList.fetch(info)
}

function downloadWechatClue(info) {
  return customerApi.publicCustomer.downloadWechatClue.fetch(info)
}

function distributePublicCustomerVisit(info) {
  return customerApi.publicCustomer.distributePublicCustomerVisit.fetch(info)
}

function distributePublicClue(info) {
  return customerApi.publicCustomer.distributePublicClue.fetch(info)
}

function visitPublicCustomerExport(info) {
  return customerApi.publicCustomer.visitPublicCustomerExport.fetch(info)
}
function cluePublicCustomerExport(info) {
  return customerApi.publicCustomer.cluePublicCustomerExport.fetch(info)
}

function buildingPoolRecordPage(info) {
  return customerApi.publicCustomer.buildingPoolRecordPage.fetch(info)
}

function buildingPoolRecordExport(info) {
  return customerApi.publicCustomer.buildingPoolRecordExport.fetch(info)
}
export default {
  // publicCustomer
  publicCustomerVisitList,
  publicCustomerVisitCount,
  publicCustomerList,
  publicCustomerCount,
  publicCustomerExport,
  customerPublicPoolDistributionList,
  customerPublicPoolDistributionExport,
  tipsGet,
  tipsClose,
  distributePublicCustomer,

  wechatClueList, //微信客户
  downloadWechatClue,
  distributePublicCustomerVisit,
  distributePublicClue,
  visitPublicCustomerExport,
  cluePublicCustomerExport,
  buildingPoolRecordPage,
  buildingPoolRecordExport
}
